#ifndef FILE_INFO_H
#define FILE_INFO_H

#include <QString>
#include <QByteArray>
#include <ctime>

struct FileInfo {
	FileInfo(const QString &_rel_path, time_t _last_modified, const QByteArray &_md5)
		:rel_path(_rel_path), last_modified(_last_modified), md5(_md5) { }

	bool operator == (const FileInfo &fi) {
		return rel_path == fi.rel_path && last_modified == fi.last_modified && md5 == fi.md5;
	}

	bool operator != (const FileInfo &fi) {
		return !(*this == fi);
	}

	QString rel_path;
	time_t last_modified;
	QByteArray md5;
};

#endif // FILE_INFO_H
